From 324ff48edcc6e1679741165fcef31ef9a76b80db Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 29 Nov 2009 17:17:26 -0500 Subject: [PATCH] Avoid a harmless warning In labels with colored, underlined text, the link handling code would spit out a warning, even if no links are around. See 603302. --- gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index acf7f53bfa..b470a454e4 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -5604,7 +5604,7 @@ gtk_label_rescan_links (GtkLabel *label) PangoAttrIterator *iter; GList *links; - if (!label->select_info) + if (!label->select_info || !label->select_info->links) return; attlist = pango_layout_get_attributes (layout); -- 2.30.2